package com.fick.tags;
import java.io.IOException;
import java.util.List;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class NewsLocationTag extends TagSupport {
	/*private static Log log = LogFactory.getLog(NewsLocationTag.class);
	public int doStartTag() throws JspException {
		
		try {
			TypeDAO typeDAO = new TypeDAO();
			BigclassDAO bigclassDAO = new BigclassDAO();
			SmallclassDAO smallclassDAO = new SmallclassDAO();
			StringBuffer sb = new StringBuffer();
			sb.append(" &gt;<a href='"+typeDAO.findById(Integer.valueOf(typeid)).getTypeurl());
			if(typeid!=null&&!typeid.equals(""))
			{
				sb.append("?typeid="+typeid+"'>");
				sb.append(typeDAO.findById(Integer.valueOf(typeid)).getTypeName()+"</a>");
			}
			if(bigclassid!=null&&!bigclassid.equals(""))
			{
				sb.append(" &gt;<a href='"+bigclassDAO.findById(Integer.valueOf(bigclassid)).getBigurl()+"?typeid="+typeid+"&bigclassid="+bigclassid+"'>");
				sb.append(bigclassDAO.findById(Integer.valueOf(bigclassid)).getBigclassName()+"</a>");
			}
			if(smallclassid!=null&&!smallclassid.equals(""))
			{
				sb.append(" &gt;<a href='"+smallclassDAO.findById(Integer.valueOf(smallclassid)).getSmallurl()+"?typeid="+typeid+"&bigclassid="+bigclassid+"&smallclassid="+smallclassid+"'>");
				sb.append(smallclassDAO.findById(Integer.valueOf(smallclassid)).getSmallclassName()+"</a>");
			}
						
			JspWriter out = pageContext.getOut();
			out.println(sb.toString());
			out.flush();
		}catch(IOException e)
		{
			log.error("标签显示错误"+e);
			e.printStackTrace();
		}
		return SKIP_BODY;
	}
	private String typeid = "";
	private String bigclassid = "";
	private String smallclassid = "";
	private String more_href = "";
	public String getTypeid() {
		return typeid;
	}
	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}
	public String getBigclassid() {
		return bigclassid;
	}
	public void setBigclassid(String bigclassid) {
		this.bigclassid = bigclassid;
	}
	public String getSmallclassid() {
		return smallclassid;
	}
	public void setSmallclassid(String smallclassid) {
		this.smallclassid = smallclassid;
	}
	public String getMore_href() {
		return more_href;
	}
	public void setMore_href(String more_href) {
		this.more_href = more_href;
	}*/
}
